/* 
 * Enterprise Library Extensions - DI + ORM.
 * Copyright (C) 2006
 *
 * GNU General Public License
 *
 * This program is free software; you can redistribute 
 * it and/or modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation; either version 2 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU General Public License for more details.
 */
using System;
using System.Collections.Generic;
using System.Text;

namespace ELE.EnterpriseLibrary.Test
{
  public class Address
  {
    private int id;
    private string street;
    private string number;
    private string zip;

    public Address()
    {
    }
    public Address(int id)
    {
      this.id = id;
    }

    public int Id
    {
      get { return id; }
      set { id = value; }
    }

    public string StreetName
    {
      get { return street; }
      set { street = value; }
    }

    public string UnitNumber
    {
      get { return number; }
      set { number = value; }
    }

    public string ZipCode
    {
      get { return zip; }
      set { zip = value; }
    }
    public override string ToString()
    {
      StringBuilder ali = new StringBuilder();
      ali.Append("-Id (").Append(this.Id).Append(")").Append(Environment.NewLine);
      ali.Append("-Street (").Append(this.StreetName).Append(")").Append(Environment.NewLine);
      ali.Append("-Number (").Append(this.UnitNumber).Append(")").Append(Environment.NewLine);
      ali.Append("-ZipCode (").Append(this.ZipCode).Append(")");
      return ali.ToString();
    }
  }
}
